import * as Sequelize from 'sequelize';
import sequelize from './../core/mysqlDb';

export interface PickInfo {
    id: number;
    facilityId:string;//仓库编码
    picklistId:string;//领料单号
    receivePersonName:string;//领料人姓名
    description:string;//备注
}
export interface PickInfostance extends Sequelize.Instance<PickInfo>, PickInfo {
}
// export const pickInfoModel = sequelize.define<PickInfostance, PickInfo>('pickInfo', {
//     facilityId:Sequelize.STRING,
//     picklistId:Sequelize.STRING,
//     receivePersonName:Sequelize.STRING,
//     description:Sequelize.TEXT
// });

export const pickInfoModel = sequelize.define('pickInfo', {
    facilityId:Sequelize.STRING,
    picklistId:Sequelize.STRING,
    receivePersonName:Sequelize.STRING,
    description:Sequelize.TEXT
});

pickInfoModel.sync();
export default pickInfoModel;
